package com.ssm.zy.mapper;

import com.ssm.zy.pojo.Label;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LabelMapper {
    //查询所有标签
    List<Label> getLabel();
    //根据post的id获取标签
    List<Label> getLabelById(@Param("postId") int postId);
}
